home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4034 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  28 lines

  1. Path: suncom.rz.hu-berlin.de!news
  2. From: codex@stern.mathematik.hu-berlin.de (Hans Bⁿhler)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: CreateProc()
  5. Date: 16 Feb 1996 13:12:05 GMT
  6. Organization: HPC
  7. Message-ID: <4g1vr5$t7s@suncom.rz.hu-berlin.de>
  8. References: <499.6617T866T519@academy.bastad.se>
  9. NNTP-Posting-Host: 141.20.130.196
  10. X-Newsreader: WinVN 0.92.6+
  11.  
  12. In article <499.6617T866T519@academy.bastad.se>, sten@academy.bastad.se (Sten Jansson) says:
  13. >I managed to run some programs i.e. "c:requestfile", but not to many.
  14. >Can anyone tell me what is needed to make it work?
  15. CreateProc() doesn't create a CLI structure for the process being created.
  16. Therefore programs that are workbench-runnable expect a WBStartup-
  17. msg at process->pr_MsgPort... of course there'll be none since
  18. CreateProc simply runs the process.
  19.  
  20. Solution:
  21. a) Use System() & create CLI (any tag, I don't know which)
  22. b) generate a WBStartup-Message by yourself and send it to the
  23. process. I done that years ago and it's little tricky if you
  24. want to pass arguments. Moreover keep in mind that some programs
  25. use WBStartup to find out their icon-file-names.
  26.  
  27. - hans
  28.